package com.uflo.test.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.bstek.uflo.model.task.TaskState;

@Entity
@Table(name="W_ORDERFLOW")
public class Orderflow {
	@Id
	@Column(name="ID_", length=60)
	private String id;
	
	//from task
	@Column(name="TASKID_", length=60)
	private Long taskId;
	@Column(name="TASKNAME_", length=60)
	private String taskName;
	@Column(name="PROCESS_INSTANCE_ID", length=60)
	private Long processInstanceId;
	@Column(name="ASSIGNEE_", length=60)
	private String assignee;
	@Column(name="OPINION_", length=60)
	private String opinion;
	@Column(name="STATE_", length=60)
	private TaskState state;
	@Column(name="URL_", length=60)
	private String url;
	
	//from business
	@Column(name="BUSINESSID", length=60)
	private String businessId;
	@Column(name="NAME_", length=60)
	private String name;
	@Column(name="DESC_", length=60)
	private String desc;
	@Column(name="TYPE_", length=60)
	private String type;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Long getTaskId() {
		return taskId;
	}
	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public Long getProcessInstanceId() {
		return processInstanceId;
	}
	public void setProcessInstanceId(Long processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	public String getAssignee() {
		return assignee;
	}
	public void setAssignee(String assignee) {
		this.assignee = assignee;
	}
	public String getOpinion() {
		return opinion;
	}
	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}
	public TaskState getState() {
		return state;
	}
	public void setState(TaskState state) {
		this.state = state;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getBusinessId() {
		return businessId;
	}
	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
}
